Xbasic

helper::GoogleSheetUpdateNamedRangeJSON Method

Syntax

UpdateNamedRangeJSON as L(namedrange as C,values as C[, columnNames as C])

Arguments

namedrangeCharacter

 

valuesCharacter

 

columnNamesCharacter

 

Returns

resultLogical

 

Description

Update a named ranges contents using JSON array of objects, arranged using the supplied columnnames. If column names are not supplied, then the first record is used to generate the column names.

Example

dim gs as helper::GoogleSheet
gs.namedresource= "<namedresource>"
gs.spreadsheet= "<spreadsheetid>"
? gs.UpdateNamedRangeJSON("HISCORE","[{score:1000}]")
? gs.UpdateNamedRangeJSON("LEADERBOARD","[{score:1000},{score:800},{score:750}]")